import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    base: "/wectrls",
    mode: 'history',
    routes: [
        {
            path: '',
            name: 'ShowRootLink',
            component: () => import(/* webpackChunkName: "show" */ './views/Layout.vue'),
            children: [
                {
                    path: "/index",
                    name: "ShowLink",
                    component: () => import(/*webpackChunkName: "managerjs" */'./views/show/ShowSources.vue'),

                }
            ]
        },
        {
            path: '',
            name: 'ManagerRootLink',
            component: () => import(/* webpackChunkName: "managerjs" */ './views/manager/Layout.vue'),
            children: [
                {
                    path: "/manager",
                    name: "ManagerLink",
                    component: () => import(/*webpackChunkName: "managerjs" */'./views/manager/ManagerTable.vue'),

                }
            ]
        },
        {
            path: '/first',
            name: 'FirstLink',
            component: () => import(/* webpackChunkName: "firstjs" */ './components/FirstPage.vue'),
        }
    ]
})
